from django.urls import path,re_path
from . import views
urlpatterns = [
    path("collection/", views.CollecionListAPIView.as_view()),
    re_path("^collection/(?P<pk>\d+)/$", views.CollecionListAPIView.as_view()),
    re_path("^collection/(?P<collection>\d+)/articles/$", views.ArticleAPIView.as_view()),
    re_path("^(?P<pk>\d+)/$", views.ArticleAPIView.as_view()),
    re_path("^save/(?P<pk>\d+)/$", views.AriticleContentAPIView.as_view()),
    path("image/", views.ArticleImageAPIView.as_view()),
    path("special/", views.ArticleSpecilAPIView.as_view()),
    path("post/", views.ArticlePostSpecliAPIView.as_view()),
    re_path("^(?P<pk>\d+)/retrieve/$", views.ArticleInfoAPIView.as_view()),
]